		    <?php
			error_reporting(0);
			require 'header.php';
			echo '<div class="panel-body">';
			if($_POST['yzm'] == $_COOKIE['yzm']){
			    require('./config/connect.php');
			    $create_user = "INSERT INTO user (username,userpasswd,times) values ('".$_POST[usernames]."','".$_POST[userpasswds]."',NOW())";
			    $_mysqli->query($create_user);
			    echo "注册成功,赶紧<a href='login.php' class='text-main'>登录</a>吧";
			}else{
			    echo "验证码输入错误,请<a href='reg.php' class='text-main'>返回</a>重新填写";
			}
			require 'footer.php';
		    ?>
